package org.jiamandan.com.strategy.impl.car.listener;

import com.alibaba.fastjson.JSONObject;
import io.netty.channel.Channel;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.jiamandan.com.constant.YxConstant;
import org.jiamandan.com.dto.YXBasicDto;
import org.jiamandan.com.strategy.impl.car.IYXContextListener;
import org.springframework.stereotype.Service;

/**

 * @功能说明：对时应答

 */
@Service(value = YxConstant.Service.CMD_55)
@AllArgsConstructor
@Slf4j
public class YxTimeListener implements IYXContextListener {


    @Override
    public void doExecute(YXBasicDto dto, Channel client) throws Exception {
        log.info("JMD-YX接收对时报文(CMD=55):"+ JSONObject.toJSONString(dto));
    }
}
